<?php

namespace App\Models\Dynamic;

use App\Models\StModel;
use App\User;
use Illuminate\Database\Eloquent\Model;

class SamWear extends Model
{
    protected $table = "tn_sam_wear";

    public $timestamps = false;

    protected $fillable = [
        'id','userid', 'starttime', 'endtime', 'emittercode', 'sensorcode', 'createdtime', 'version', 'devicetype'
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function user()
    {
        return $this->hasMany(User::class);
    }
}
